package log4j;

import org.apache.log4j.FileAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;



public class FileAppenderExample {
	  static Logger logger = Logger.getLogger("FileAppenderExample.class");
	  public static void main(String[] args)throws Exception {
	  FileAppender fileappender = 
	  new FileAppender(new PatternLayout(),"logs/log.txt");
	  logger.addAppender(fileappender);
	  logger.info("if still appending");  
	  logger.info("See your output.txt");  
	  }
	}